<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import { mapGetters, mapActions } from 'vuex';
export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  computed:{
    ...mapGetters({
      hospitalSettingConfig: 'branchHospital/hospitalSettingConfig'
    }),
  },
  methods: {
    ...mapActions({
      saveRecipeJurisdiction: 'branchHospital/saveRecipeJurisdiction' // 获取医院中药处方权限是否开放
    })
  },
  mounted(){
    this.saveRecipeJurisdiction()
  }
}
</script>
